package com.cysoft.service;

import com.cysoft.dao.MachineDao;
import com.cysoft.domain.Machine;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author andaolong
 * @time 2021年3月27日11:25:15
 */
@Service
public class MachineService {

    @Autowired
    private MachineDao machineDao;

    //获取到device，并填入machiningType的list
    public List<Machine> getDeviceList() {

        List<Machine> deviceList = machineDao.getDeviceListFromDB();

        return deviceList;
    }

}

